package com.dw.demo.feign.controller;

import com.dw.demo.feign.fallback.SchedualServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
 * feign代理controller
 */
@RestController
public class HiController {

    @Autowired
    private SchedualServiceClient sayHiFromClientOne;

    @RequestMapping(value = "/demo",method = RequestMethod.GET)
    public String sayHi(){
        return sayHiFromClientOne.hello();
    }


}